<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新增文章</title>
</head>
<body>
<form action="{% url 'article:article' %}" method="post">
    <table border="1px" cellspacing="0px" cellpadding="5px" width="50%">
        <tbody>
        <tr>
            <td><label for="title">标题</label></td>
            <td>
                <input type="title" id="title" name="title" placeholder="标题">
            </td>
        </tr>
        <tr>
            <td><label for="price">价格</label></td>
            <td>
                <input type="number" id="price" name="price" placeholder="价格">
            </td>
        </tr>
        <tr>
            <td><label for="content">内容</label></td>
            <td><textarea name="content" id="content" cols="30" rows="10"></textarea></td>
        </tr>
        <tr>
            <td></td>
            <td><button type="submit">提交</button></td>
        </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="2" style="text-align: center"><a href="{% url 'article:index' %}">首页</a></td>
            </tr>
        </tfoot>
    </table>
</form>
</body>
</html>